@charset "utf-8";

.titleimg {
    background-image: url("../image/head.jpeg");
    height: 100vh;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: 0.5s ease 0s;
    animation: load 0.5s;
    overflow: hidden;
}

.titleimg .title {
    width: 100%;
    max-width: 1540px;
    padding: 200px 5%;
    font-size: clamp(50px, 8vw, 100px); 
    font-weight: bolder;
    color: rgba(49, 70, 87, 0.9);
    margin: 0 auto;
}


.main {
    scroll-snap-type: y proximity;
    overflow: hidden;
    scroll-behavior: smooth;
}

.sec {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sec:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.sec:nth-child(2) a {
    text-decoration: none;
    margin: 0;
}

.pt {
    display: flex;
    flex-direction: column;
    height: 500px;
    width: 250px;
    float: none;
    margin: 0;
    background: rgba(219, 235, 241, 0.8);
    box-shadow: 0 0 15px rgb(59, 73, 95);
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.5s ease 0s;
}

.pt:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.imghid {
    overflow: hidden;
}

.part1 .img {
    background-image: url("../image/01.jpg");
}

.part2 .img {
    background-image: url("../image/03.jpg");
}

.part3 .img {
    background-image: url("../image/02.jpg");
}

.part4 .img {
    background-image: url("../image/04.jpg");
}

.pt .img {
    height: 190px;
    width: 250px;
    background-size: cover;
    background-position: 0px -30px;
    transition: all 0.5s ease 0s;
    opacity: 0.8;
}

.pt .img:hover {
    transform: scale(1.1);
}

.pt .txt {
    height: 310px;
    width: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;

}

.pt .txt h1 {
    text-align: center;
    font-size: 3em;
    color: rgb(28, 44, 68);
    height: 30px;
    line-height: 30px;
}

.pt .txt p {
    margin-top: -2px;
    word-wrap: break-word;
    color: rgb(114, 182, 202);
}

@keyframes load {
    0% {
        background-position-y: 50px;
        opacity: 0;
    }

    100% {
        background-position-y: 0px;
        opacity: 1;
    }
}

.main::-webkit-scrollbar {
    width: 8px;
}

.main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.main::-webkit-scrollbar-thumb {
    background: rgba(123, 161, 197, 0.5);
    border-radius: 4px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 161, 197, 0.8);
}

/* 打字机效果相关样式 */
.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 0.7s infinite;
    color: rgba(49, 70, 87, 0.9);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.title {
    width: 100%;
    max-width: 1540px;
    padding: 200px 5%;
    transform: translateX(-40px);
    font-size: clamp(50px, 8vw, 100px);
    font-weight: bolder;
    color: rgba(49, 70, 87, 0.9);
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
}